package Template_Method_Design_Pattern;

public abstract class C {
    //模板方法sing()//要加final关节字,因为模板方法是不能被子类重写的
    public final void sing() {
        System.out.println("请唱一首歌");
        dosing();
        System.out.println("唱完了");
    }

    public abstract void dosing();
}
